<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "listen_options".
 *
 * @property integer $oid
 * @property integer $qid
 * @property string $options
 * @property string $content
 * @property integer $is_correct
 */
class Listen_options extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'listen_options';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['qid', 'options', 'content', 'is_correct'], 'required'],
            [['qid', 'is_correct'], 'integer'],
            [['content'], 'string'],
            [['options'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'oid' => 'Oid',
            'qid' => 'Qid',
            'options' => 'Options',
            'content' => 'Content',
            'is_correct' => 'Is Correct',
        ];
    }
}
